﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InnovaApp.Layers.SecurityLayer.Models.MetaData;
using System.Web.Mvc;
using InnovaApp.Layers.MetaDataLayer;
using System.ComponentModel.DataAnnotations;
using INNOVACALL.Framework.Common.MVCHelpers.Localization;
using InnovaApp.Layers.CommonLayer.Models.MetaModels;
using InnovaApp.Layers.ResourcesLayer.Properties;

namespace InnovaApp.Layers.SecurityLayer.Models.MetaModels
{
	public class InnoAppUser_MetaModel : InnoAppUser_MetaData
	{

		[DataType(DataType.Password)]
		[DisplayNameLocalizedEntityAttribute(typeof(Resources), "Register", "AppUser", "ConfirmPassword")]
		//see http://connect.microsoft.com/VisualStudio/feedback/details/665793/jquery-unobtrusive-validate-equalto-fails-with-compare-attribute#details
		[Compare("Password", ErrorMessageResourceName = "ErrMsgPassword_Compare_Mismatch", ErrorMessageResourceType = typeof(Resources))]
		public string ConfirmPassword { get; set; }
		
		public InnoAppUser_MetaModel()
			: base()
		{
		}
	}
}
